package com.zjyd.douyanglive.service.impl;

import com.zjyd.douyanglive.api.SystemPayClient;
import com.zjyd.douyanglive.service.ILiveService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 直播的业务逻辑
 */
@Slf4j
@Service
public class LiveServiceImpl implements ILiveService {

    @Autowired
    private SystemPayClient systemPayClient;

    @Override
    public String liveTip(Integer liveId) {
        log.info("2、来到业务逻辑层，去查询钱够不够");
        String s = systemPayClient.checkMyBalance("111");
        log.info("服务调用结果{}",s);
        return s;
    }
}
